page {
  min-height: 100vh;
  box-sizing: border-box;
  padding: 16px 16px 64px;
  display: grid;
  grid-template:
    'media' min-content
    'title' min-content
    'content' min-content
    'publish-btn' 1fr
    /1fr;
  place-items: center;

  .image-list {
    grid-area: media;

    width: 100%;

    --img-width: calc((100vw - 16px * 2 - 16px * 2) / 3);
    display: grid;
    grid-template-columns: repeat(3, var(--img-width));
    gap: 16px;

    .image-item {
      width: var(--img-width);
      height: var(--img-width);
      background: #ffffff;
      border: 0.5px solid #e8e8e8;
      border-radius: 6px;
      overflow: hidden;
    }

    .add-btn {
      width: var(--img-width);
      height: var(--img-width);
      border: 0.5px solid #e8e8e8;
      border-radius: 6px;

      display: flex;
      justify-content: center;
      align-items: center;

      &__img {
        width: 24px;
        height: 24px;
      }
    }
  }

  .video-container {
    grid-area: media;
    width: 100%;
    height: 240px;

    border-radius: 6px;
    overflow: hidden;

    position: relative;

    .video {
      width: 100%;
      height: 100%;
    }

    .cover {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .mask {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;

      .play-btn {
        width: 60px;
        height: 60px;
      }
    }

    .add-btn {
      width: 100%;
      height: 100%;
      border: 0.5px solid #e8e8e8;
      border-radius: 6px;

      display: flex;
      justify-content: center;
      align-items: center;

      &__img {
        width: 48px;
        height: 48px;
      }
    }
  }

  .title {
    margin-top: 26px;
    grid-area: title;
    width: 100%;

    position: relative;
  }

  .content {
    margin-top: 16px;
    grid-area: content;
    box-sizing: content-box;
    width: 100%;
    min-height: calc(150px - 16px - 32px);

    padding: 16px 0 32px;

    border-top: 1px solid #f9f9f9;
    border-bottom: 1px solid #ccc;

    &::after {
      content: attr(data-count) '/' attr(maxlength);
      position: absolute;
      right: 16px;
      bottom: 16px;

      color: #999;
    }
  }

  .publish-btn {
    margin-top: 16px;
    grid-area: publish-btn;
    align-self: self-end;

    width: 231px;
    height: 40px;
    background: #438eff;
    border-radius: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 16px;
    color: #fff;
  }
}
